import { Redirect } from 'react-router-dom'
import Recommend from "../views/Recommend"
import Home from "../views/Home"
import HomeDetail from "../views/HomeDetail"
import Singer from '../views/Singer'
import Example from '../views/Example'
const routes = [
    {
        path: '/',
        exact: true,
        render: () => <Redirect to='/home'></Redirect>
    },
    {
        path: "/recommend",
        component: Recommend
    },
    {
        path: "/singer",
        component: Singer
    },
    {
        path: "/example",
        component: Example
    },
    {
        path: '/home',
        component: Home,
        routes: [
            {
                path: "/home/:id",
                component: HomeDetail
            }
        ]
    },
]
export default routes